package jlu.zqq.po;

import java.util.HashSet;
import java.util.Set;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 3797633388203793326L;
	private Integer id;
	private String role;
	private String realname;
	private String uname;
	private String passward;
	private String position;
	private String department;
	private String phone;
	private Integer zbjs;
	private Set faultRecords = new HashSet(0);

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public User(Integer id, String role, String realname, String uname,
			String passward, String position, String department, String phone,
			Integer zbjs, Set faults) {
		this.id = id;
		this.role = role;
		this.realname = realname;
		this.uname = uname;
		this.passward = passward;
		this.position = position;
		this.department = department;
		this.phone = phone;
		this.zbjs = zbjs;
		this.faultRecords = faults;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getRole() {
		return this.role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getRealname() {
		return this.realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getUname() {
		return this.uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getPassward() {
		return this.passward;
	}

	public void setPassward(String passward) {
		this.passward = passward;
	}

	public String getPosition() {
		return this.position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public String getDepartment() {
		return this.department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getZbjs() {
		return this.zbjs;
	}

	public void setZbjs(Integer zbjs) {
		this.zbjs = zbjs;
	}

	public Set getFaultRecords() {
		return this.faultRecords;
	}

	public void setFaultRecords(Set faults) {
		this.faultRecords = faults;
	}

}